<?php

namespace app\api\validate;

use think\Validate;

class Address extends Validate
{
    protected $rule = [
        'province' => 'require',
        'city' => 'require',
        'district' => 'require',
        'detailed_address' => 'require',
        'recipient_phone' => 'require',
        'recipient_name' => 'require',
        'is_default' => 'require',
    ];

    protected $message = [
        'province.require' => '省份不能为空',
        'city.require' => '城市不能为空',
        'district.require' => '区县不能为空',
        'detailed_address.require' => '详细地址不能为空',
        'recipient_phone.require' => '收件人手机号不能为空',
        'recipient_name.require' => '收件人姓名不能为空',
        'is_default.require' => '是否默认不能为空',
    ];
}
